package edu.wong.attendance_management_api.service.impl;

import edu.wong.attendance_management_api.entity.Check;
import edu.wong.attendance_management_api.entity.dto.QingjiaDTO;
import edu.wong.attendance_management_api.mapper.CheckMapper;
import edu.wong.attendance_management_api.service.ICheckService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 服务实现类
 * </p>
 *
 * 员工
 *
 */
@Service
public class CheckServiceImpl extends ServiceImpl<CheckMapper, Check> implements ICheckService {

    @Override
    public QingjiaDTO listQingjia() {
        QingjiaDTO qingjiaDTO= new QingjiaDTO();
        qingjiaDTO.setNumDay(this.getBaseMapper().listQingjiaDay());
        qingjiaDTO.setNumWeek(this.getBaseMapper().listQingjiaWeek());
        qingjiaDTO.setNumMonth(this.getBaseMapper().listQingjiaMonth());
        return qingjiaDTO;


    }
}
